-- GENERATED SPELL FOR [Putridus Satyr] --


function spell0_11790(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(12540,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11790', 4288, 1)
end

function spell1_11790(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(15667,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11790', 569, 1)
end

function Sorts_11790(pUnit, Event)
local choix_sorts_11790 = math.random(0, 1)
if choix_sorts_11790 == 0 then
pUnit:RegisterEvent('spell0_11790', 1, 1)
end
if choix_sorts_11790 == 1 then
pUnit:RegisterEvent('spell1_11790', 1, 1)
end
end

function mob11790_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11790', math.random(1500, 3000), 1)
end

function mob11790_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11790_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11790_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11790, 1, 'mob11790_Action')
RegisterUnitEvent(11790, 2, 'mob11790_Leave')
RegisterUnitEvent(11790, 3, 'mob11790_Kill')
RegisterUnitEvent(11790, 4, 'mob11790_Die')
